사이트 내 전체검색
[javascript] 배경 화면을 고정시키기
로빈아빠
https://cmd.kr/javascript/524 URL이 복사되었습니다.

본문

<body>에 넣으세요. 

 
<scRIPT language=Javascript1.2>
if (document.all)
document.body.style.cssText="background: url(이미지경로) no-repeat fixed right bottom"
</scRIPT>

배경 이미지를 반복시키려면 no-repeat를 지우세요.

배경을 고정할 위치에 따라...

  left top,              center top,              right top

left center ,          center center,          right center

left bottom ,          center bottom,          right bottm 

댓글목록

등록된 댓글이 없습니다.

831 (6/17P)

Search

Copyright © Cmd 명령어 3.128.199.175